
import socket
def get_free_tcp_port():
    tcp = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
    tcp.bind(("",0))
    _,port = tcp.getsockname()
    tcp.close()
    return port


if __name__ == '__main__':
    dp = [[False] * 3 for _ in range(3)]
    print(dp)
